import request from '@/plugin/axios'

// 单元信息获取
export function getUnit (ids) {
  return request({
    url: '/unit?ids=' + ids,
    method: 'get'
  })
}

//
export function saveUnit (data) {
  return request({
    url: '/unit/save',
    method: 'post',
    data
  })
}

export function locationSaveUnit (data) {
  return request({
    url: '/unit/save?scaleIds=' + data.ids + '&id=' + data.id + '&name=' + data.name + '&mean=' + data.mean + '&target=' + data.target,
    method: 'post'
  })
}
